#include<stdio.h>

void Print(int sum)
{
    printf("result = %d\n",sum);
}

int sum(int from , int to)
{
    int sum=0,i;
    for(i = from ;i<to;i++)
        sum+=i;
    return sum;
}

int main()
{
    int addsum = sum(1,100);
    Print(addsum);
    return 0;
}
